import math
import numpy as np

inp=input().split(' ')
a=float(inp[0])
b=float(inp[1])

def fun(x):
    if x!=0:
        return math.sin(x)/x
    else:
        return 1

def generate_k(a,b,n):
    x=[]
    for i in range(n+1):
        x.append(a+i*(a-b)/n)

    #划分为n段
    #x中的元素个数为n+1

    A=[]
    vec=[]#右边的列矩阵
    for i in range(n+1):
        t=[]
        for j in range(n+1):
            t.append(x[j]*fun(x[j])**i)
        A.append(t)
        vec.append((b**(i+1)-a**(i+1))/(i+1))

    A=np.array(A)
    vec=np.array(vec)
    k=np.linalg.solve(A,vec)
    return k

print(generate_k(a,b,2))

